﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo3
{
    class Person2
    {
        private string HeroName { get; set; }
        private string jieshao { get; set; }
        private string gongji { get; set; }
        private int fangyu { get; set; }
        private int sudu { get; set; }

        public Person2(string heroName, string jieshao, string gongji, int fangyu, int sudu)
        {
            HeroName = heroName;
            this.jieshao = jieshao;
            this.gongji = gongji;
            this.fangyu = fangyu;
            this.sudu = sudu;
        }
        public void Text1()
        {
            Console.WriteLine("英雄名称：{0},英雄介绍：{1},攻击力：{2},防御力：{3},速度：{4}",this.HeroName,this.jieshao,this.gongji,this.fangyu,this.sudu );
        }
    }
}
